package org.javatribe.calculator;

import org.javatribe.calculator.common.BaseFrameBuilder;
import org.javatribe.calculator.module.handler.CalculateHandler;
import org.javatribe.calculator.module.handler.LogHandler;
import org.javatribe.calculator.module.handler.ProccessExitHandler;
import org.javatribe.calculator.module.handler.TextFiledAppendHandler;
import org.javatribe.calculator.module.handler.TextFiledClearHandler;
import org.javatribe.calculator.module.view.IndexFrame;

/**
 * Created by Wenxin on 2017/9/15.
 */
public class Calculator{

    public static void main(String[] args) {
       new BaseFrameBuilder(IndexFrame.class)
               .addHandler(new LogHandler())
               .addHandler(new TextFiledAppendHandler())
               .addHandler(new TextFiledClearHandler())
               .addHandler(new ProccessExitHandler())
               .addHandler(new CalculateHandler())
               .build();
    }

}
